package com.mmall.concurrency.example.singleton;

import lombok.extern.slf4j.Slf4j;




@Slf4j
public class SingletonExample1 {
    private SingletonExample1(){
    }

    private  static SingletonExample1 instance=null;

    public static SingletonExample1 getInstance(){
        if(instance==null){
            instance=new SingletonExample1();
        }
        return instance;
    }
}
